﻿using BCCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Agent.AgentBusiness
{
    /// <summary>
    /// 代理商负责人账号信息
    /// </summary>
    public class AgentAdminInfoRequestDto
    {
        /// <summary>
        /// 手机号
        /// </summary>	
        [Display(Name = "手机号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [RegularExpression(RegexPatterns.PHONE, ErrorMessage = "{0} 应为11位中国运营商手机号")]
        public string Phone { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>	
        [Display(Name = "身份证号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [RegularExpression(RegexPatterns.ID_CARD, ErrorMessage = "{0} 应为18位中国公民有效身份证号")]
        public string IdCard { get; set; }
    }
}
